﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reg.aspx.cs" Inherits="WebUI.Custom.Reg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>客户注册</title>
    <style type="text/css">
	body{  color:#CCCCCC;font-size:12px; background-image:url(../images/bg_login.png); background-position:bottom; background-repeat:repeat-x; background-color:#5e95aa; }
	</style>
</head>
<body>
    <form id="form1" runat="server">
        <div style="text-align: center; margin-top:20px">
        <table>
        <tr>
            <td style="width: 106px">
                客户姓名：</td>
            <td style="width: 86px; text-align: left;">
                <asp:TextBox ID="txtPersonName" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
                   <td style="text-align: left;"><asp:RequiredFieldValidator ID="RFValidatorPersonName" runat="server" ControlToValidate="txtPersonName"
                    ErrorMessage="*">请输入姓名</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px; height: 26px;">
                <asp:Label ID="labName" runat="server" Text="注册账号："></asp:Label></td>
            <td style="width: 86px; height: 26px; text-align: left;">
                <asp:TextBox ID="txtLoginName" runat="server" ForeColor="#404040"></asp:TextBox>
               </td>
                  <td style="text-align: left;"> <asp:RequiredFieldValidator ID="RFValidatortLoginName" runat="server" ControlToValidate="txtLoginName"
                    ErrorMessage="*">请输入账号</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorLoginName" runat="server" ControlToValidate="txtLoginName"
                ErrorMessage="*" ValidationExpression="^[a-zA-Z]\w{5,17}$">请输入6-18位账号</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                <asp:Label ID="labPassword" runat="server" Text="注册密码："></asp:Label></td>
            <td style="width: 86px; text-align: left;">
                <asp:TextBox ID="txtLoginPassword" runat="server" TextMode="Password" Width="149px" ForeColor="#404040"></asp:TextBox>
               </td>
              <td style="text-align: left;"> <asp:RequiredFieldValidator ID="RFValidatorLoginPassword" runat="server" ControlToValidate="txtLoginPassword"
                    ErrorMessage="*">请输入密码</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator   ID="REValidatorLoginPassword"   runat="server"   ControlToValidate="txtLoginPassword"   
                          ErrorMessage="*"   ValidationExpression="^[a-zA-Z]\w{5,17}$">请输入6-18位密码</asp:RegularExpressionValidator></td> 
        </tr>
        <tr>
            <td style="width: 106px; height: 28px;">
                <asp:Label ID="labPas" runat="server" Text="确认密码："></asp:Label></td>
            <td style="width: 86px; text-align: left; height: 28px;">
                <asp:TextBox ID="txtLoginRePassword" runat="server" TextMode="Password" Width="149px" ForeColor="#404040"></asp:TextBox>
                </td>
                      <td style="text-align: left;"><asp:CompareValidator ID="CValidatorLoginRePassword" runat="server" ControlToCompare="txtLoginPassword"
                    ControlToValidate="txtLoginRePassword" ErrorMessage="*">密码不一致</asp:CompareValidator></td>
        </tr>
        <tr>
            <td style="width: 106px; height: 26px;">
                所在公司：</td>
            <td style="width: 86px; text-align: left; height: 26px;">
                <asp:TextBox ID="txtDepartment" runat="server" ForeColor="#404040"></asp:TextBox>
               </td>
                      <td style="text-align: left;"> <asp:RequiredFieldValidator ID="RFValidatorDepartment" runat="server" ControlToValidate="txtDepartment"
                    ErrorMessage="*">请输入所在公司</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px; height: 26px;">
                联系电话：</td>
            <td style="width: 86px; height: 26px; text-align: left;">
                <asp:TextBox ID="txtTel" runat="server" ForeColor="#404040"></asp:TextBox>
               </td>
                    <td style="text-align: left;"> <asp:RequiredFieldValidator ID="RFValidatorTel" runat="server" ControlToValidate="txtTel"
                    ErrorMessage="*">请输入联系电话</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorTel" runat="server" ControlToValidate="txtTel"
                    ErrorMessage="*" ValidationExpression="^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$">区号-号码</asp:RegularExpressionValidator></td>  
        </tr>
        <tr>
            <td style="width: 106px">
                联系地址：</td>
            <td style="width: 86px; text-align: left;">
                <asp:TextBox ID="txtAddress" runat="server" ForeColor="#404040"></asp:TextBox>
               </td>
                      <td style="text-align: left;"> <asp:RequiredFieldValidator ID="RFValidatorAddress" runat="server" ControlToValidate="txtAddress"
                    ErrorMessage="*">请输入联系地址</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                电子邮箱：</td>
            <td style="width: 86px; text-align: left">
                <asp:TextBox ID="txtEmail" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
              <td style="text-align: left;"><asp:RequiredFieldValidator ID="RFValidatorEmail" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="*">请输入电子邮箱</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorEmail" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="*" ValidationExpression="^[\w-\.]{2,25}\@[\w-]{2,35}(?:(?:\.(?:com|org|gov)(?=\.cn))|(?:\.[a-z]{2}(?=\.cn))|(?:\.(?:net)(?!\.)))?\.(?:com|cn|mobi|tel|asia|net|org|name|me|tv|cc|hk|biz|info)$">请输入电子邮箱</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                传真：</td>
            <td style="width: 86px; text-align: left">
                <asp:TextBox ID="txtFax" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
                      <td style="text-align: left;"><asp:RegularExpressionValidator ID="REValidatorFax" runat="server" ControlToValidate="txtFax"
                    ErrorMessage="*" ValidationExpression="^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$">区号-号码</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                备注：</td>
            <td style="width: 86px; text-align: left">
                <asp:TextBox ID="txtNode" runat="server" ForeColor="#404040"></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" Text="保存" ForeColor="#404040" />
                <asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" Text="重置" ForeColor="#404040" /></td>
        </tr>
    </table>
    </div>
    </form>
    </body>
</html>
